import request from '@/utils/request'

// 查询客户基本信息列表
export function listProjct(query) {
    return request({
        url: '/lims/sampleWith/cyProjectList',
        method: 'get',
        params: query
    })
}

// 获取右侧详情接口
export function listProjctView(query) {
    return request({
        url: '/lims/sampleWith/list',
        method: 'get',
        params: query
    })
}

// 获取新增时上方方案表单的数据
export function getTopFormDate(projectId) {
    return request({
        url: '/lims/contract/project/' + projectId,
        method: 'get',
    })
}

// 获取拟交接和未交接列表数据
export function getNoSampleWithList(query) {
    return request({
        url: '/lims/sampleWith/sampleWithList',
        method: 'get',
        params: query
    })
}
// 获取拟交接和未交接列表数据
export function getYesSampleWithList(query) {
    return request({
        url: '/lims/sampleWith/withList',
        method: 'get',
        params: query
    })
}

// 勾选左侧未交接变为拟交接
export function putNiList(data) {
    return request({
        url: '/lims/sampleWith/updateStatus',
        method: 'put',
        data: data
    })
}

// 删除拟交接列表数据
export function delNiSampleWith(sFIds) {
    return request({
        url: '/lims/sampleWith/delete/' + sFIds,
        method: 'delete'
    })
}
// 删除弹框外右侧表格接口
export function delSampleWith(withIds) {
    return request({
        url: '/lims/sampleWith/record/delete/' + withIds,
        method: 'delete'
    })
}

// 创建样品交接表
export function createWithTable(withId) {
    return request({
        url: '/lims/sampleWith/createTable/' + withId,
        method: 'post'
    })
}

// 拟交接数量改变接口
export function putSumCount(data) {
    return request({
        url: '/lims/sampleWith/update/count',
        method: 'put',
        data: data
    })
}

export function approveData(data) {
    return request({
        url: '/lims/sampleWith/approveData',
        method: 'post',
        data: data
    })
}